﻿using DBUtility;
using Jmit.Common;
using Jmit.Deyi.AutoTask;
using Quartz;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;

namespace Jmit.Deyi.Job
{
    //不允许此 Job 并发执行任务（禁止新开线程执行）
    [DisallowConcurrentExecution]
    public class TestJob2 : IJob
    {

        /// <summary>
        /// 定时任务：从orcale取数据同步到MySQL
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public Task Execute(IJobExecutionContext context)
        {
            return Task.Factory.StartNew(() =>
            {

                Console.WriteLine($"第二个Job执行了，Time：{DateTime.Now}");          
                // LogBLL.log("开始");



            });
        }



    }
}
